package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterMingXiSongLiDao;
import com.vf.admin.miaodong.entity.AppMingXiSongLi;
import com.vf.admin.miaodong.service.AfterMingXiSongLiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AppMingXiSongLiServiceImpl.java
 * @Description 送礼明细
 * @createTime 2021年11月02日 15:13:00
 */
@Service
public class AfterMingXiSongLiServiceImpl implements AfterMingXiSongLiService {

    @Autowired
    AfterMingXiSongLiDao afterMingXiSongLiDao;

    /**
     * 新增或更新
     * @param appMingXiSongLi
     */
    @Override
    public void saveOrUpdate(AppMingXiSongLi appMingXiSongLi) {
        afterMingXiSongLiDao.saveOrUpdate(appMingXiSongLi);
    }

    /**
     *  查找用户送礼明细
     */
    @Override
    public List<AppMingXiSongLi> findList(String userid, SplitPageBean splitPageBean) {
        return afterMingXiSongLiDao.findList(userid, splitPageBean);
    }
}